package com.itheima.demo2threadapi;

public class threadapi
{
    public static void main(String[] args) {
        //休眠
        for (int i = 0; i <5; i++) {
            System.out.println("hello");
            try {
                //休眠1秒
                Thread.sleep(1000);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        }
}
